﻿export default [
  {
    path: '/login',
    component: '@/pages/login',
    access: false,
    layout: false,
    //这个配置为false的话就不会出现在layout中属于独立页面
  },
  {
    path: '/applt',
    component: '@/pages/applt',
    access: false,
    layout: false,
    //这个配置为false的话就不会出现在layout中属于独立页面
  },
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    component: '@/pages/Home',
    name: '系统主页',
    icon: 'home',
    hideInBreadcrumb: false,
  },
  {
    path: '/system',
    name: '系统管理',
    icon: 'AppstoreOutlined',
    routes: [
      {
        path: '/system/user',
        name: '用户管理',
        component: '@/pages/System/user',
      },
      {
        path: '/system/role',
        name: '角色管理',
        component: '@/pages/System/role',
      },
      {
        path: '/system/menu',
        name: '菜单管理',
        component: '@/pages/System/menu',
      },
      {
        path: '/system/dict',
        name: '字典管理',
        component: '@/pages/System/dict',
      },
    ],
  },
  {
    path: '/serve',
    name: '服务项目',
    icon: 'CustomerServiceOutlined',
    routes: [
      {
        path: '/serve/category',
        name: '类别管理',
        component: '@/pages/Serve/category',
      },
      {
        path: '/serve/shopCategory',
        name: '商户项目',
        component: '@/pages/Serve/shopCategory',
      },
      {
        path: '/serve/statistics',
        name: '数据统计',
        component: '@/pages/Serve/statistics',
      },
      {
        path: '/serve/commission',
        name: '抽成管理',
        component: '@/pages/Serve/commission',
      },
    ],
  },

  {
    path: '/shop',
    name: '商铺管理',
    icon: 'ShopOutlined',
    routes: [
      {
        path: '/shop/shop',
        name: '门店管理',
        component: '@/pages/Shop/shop',
      },
      {
        path: '/shop/charge',
        name: '电站审核',
        component: '@/pages/Shop/charge',
        // exact: true,
      },
      {
        path: '/shop/apply',
        name: '商铺审核',
        component: '@/pages/Shop/apply',
        // exact: true,
      },
      {
        path: '/shop/complain',
        name: '投诉管理',
        component: '@/pages/Shop/complain',
      },
    ],
  },
  {
    path: '/gen',
    name: '商品管理',
    icon: 'ShoppingCartOutlined',
    routes: [
      {
        path: '/gen/goods',
        name: '商品管理',
        component: '@/pages/Gen/goods',
      },
      {
        path: '/gen/goodstype',
        name: '商品类型管理',
        component: '@/pages/Gen/goodstype',
        // exact: true,
      },
    ],
  },
  {
    path: '/judgement',
    name: '评价管理',
    icon: 'CommentOutlined',
    routes: [
      {
        path: '/judgement/chargejudgement',
        name: '充电桩评价管理',
        component: '@/pages/Judgement/chargejudgement',
      },
      {
        path: '/judgement/servicejudgement',
        name: '服务评价管理',
        component: '@/pages/Judgement/servicejudgement',
      },
      {
        path: '/judgement/goodsjudgement',
        name: '商品评价管理',
        component: '@/pages/Judgement/goodsjudgement',
      },
    ],
  },
  {
    path: '/order',
    name: '订单管理',
    icon: 'UnorderedListOutlined',
    routes: [
      {
        path: '/order/ServiceOrder',
        name: '服务订单',
        component: '@/pages/Order/serviceOrder',
      },
      {
        path: '/order/GoodsOrder',
        name: '商品订单',
        component: '@/pages/Order/goodsOrder',
      },
      {
        path: '/order/test',
        name: '服务订单数据',
        component: '@/pages/Order/test',
      },
      {
        path: '/order/data',
        name: '数据统计',
        component: '@/pages/Order/data',
      },
      {
        path: '/order/ChargeOrder',
        name: '电桩订单',
        component: '@/pages/Order/chargeOrder',
      },
    ],
  },
  {
    path: '/coupon',
    name: '优惠券管理',
    icon: 'PayCircleOutlined',
    routes: [
      {
        path: '/coupon/coupon',
        name: '优惠券管理',
        component: '@/pages/Coupon',
      },
    ],
  },
  {
    path: '/message',
    name: '消息管理',
    icon: 'MessageOutlined',
    component: '@/pages/Message',
    access: 'canAdmin',
  },

  {
    path: '/profile',
    name: '个人中心',
    component: '@/pages/Personal',
    // 是否在菜单中隐藏
    hideInMenu: true,
  },
];
